import request from '@/utils/request'
export const getDepartmentsListAPI = () => request({
  url: '/company/department'
})

// 获取员工简单列表 API
export const getEmployeeBriefnessListAPI = () => request({
  url: '/sys/user/simple'
})

// 新增部门 API
export const PostDepartmentAPI = ({ code, introduce, manager, name, pid }) => request({
  url: '/company/department',
  method: 'POST',
  data: {
    code,
    introduce,
    manager,
    name,
    pid
  }
})
